package com.highper.application.service.remote;

import com.highper.application.service.remote.fallback.AdminRemoteServiceFallback;
import com.highper.common.constant.ServiceNameConstant;
import com.highper.common.entity.response.HighperResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author ZhangGJ
 * @Date 2022/02/07 10:01
 */
@FeignClient(value = ServiceNameConstant.HIGHPER_ADMIN, contextId = "adminRemoteService", fallbackFactory = AdminRemoteServiceFallback.class)
public interface IAdminRemoteService {

    /**
     * admin user
     *
     * @return
     */
    @GetMapping("admin/user/list")
    HighperResponse adminUserList();
}
